import Home from './components/Home.vue';
import Users from './components/Users.vue';
import News from './components/News.vue';
import Cate from './components/Cate.vue';
import Product from './components/Product.vue';
import Comment from './components/Comment.vue';
import Upload from './components/Upload.vue';

export const routes = [
	{ path:'/',component:Home },
	//routes.js文件中设参
	{ path:'/users',component:Users },
	{ path:'/news',component:News },
	{ path:'/cate',component:Cate },
	{ path:'/product',component:Product },
	{ path:'/news/newsComment/:newsid',component:Comment },
	{ path:'/upload',component:Upload },	
];